package org.project.service.mq1;

import org.junit.Test;
import org.project.service.mq.JMSReceiver;
import org.project.service.mq.JMSSender;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
 

public class JMSSenderTest {

	
	///  send 能用 接收用不了
	
	
	//@Test
	public void jmsSender() {
		ApplicationContext app = new ClassPathXmlApplicationContext("application-send.xml");
		MessageSenderImpl sender = (MessageSenderImpl)app.getBean("ibmMessageSender");
		sender.sendMessage("watson");
	}
	
	@Test
	public void jmsRece() {
		ApplicationContext app = new ClassPathXmlApplicationContext("application-recv.xml");
		TextMessageListener listen = (TextMessageListener)app.getBean("textMessageListener");
		
	
	}
 
}
